<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
                width: 300px;
                height: 300px;
                background-color: rebeccapurple;
                background-image: url(./img/gslog.jpeg);
                background-repeat: no-repeat;

                /* 等价于  background-position: 20px */
                /* background-position: 20px center; */

                /* 水平居中  垂直20px*/
                background-position: center 20px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>